Skip to content

Add a release helper to x.py#11

Open
moucha19-st wants to merge 2 commits into
mainfrom
x-release
Open

Add a release helper to x.py#11
moucha19-st wants to merge 2 commits into
mainfrom
x-release

Conversation

@moucha19-st

Copy link
Copy Markdown
Collaborator

This should help with ensuring that release commits are consistent and easy to do. It also makes it possible for x.py targets to accept arguments in the future.

@moucha19-st
moucha19-st requested a review from blazraST June 12, 2026 18:37
@moucha19-st moucha19-st added the enhancement New feature or request label Jun 12, 2026
@ST-dot-com

Copy link
Copy Markdown

Dear User,
Your pull request has been closed because the "Contribution License Agreement" (CLA) has not yet been signed.
Please sign the CLA) and resubmit your pull request.
Best regards,
P.S.: The CLA only needs to be signed once; you will not be asked to sign it again for future pull requests.

@ST-dot-com ST-dot-com closed this Jun 12, 2026
@moucha19-st moucha19-st reopened this Jun 12, 2026

@blazraST blazraST left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we depend on the dotnet GitVersion tool and uv?

Comment thread x.py

replace_line("../compost_rpc/compost_rpc.py", r'^__version__\s*=.*$', f'__version__ = "{new_version}"')

run(["git", "-C", "..", "add", "compost_rpc/compost_rpc.py", "pyproject.toml"])

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is weird on multiple levels - you use -C and give a relative path and then the path is ... Why?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is weird because the script sets the test folder globally as a root. If we extend this script to do more than just tests, it should be changed. Didn't do it yet though, hence this.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should change it then, but even if we didn't I don't see the reason to do this.

Comment thread x.py
replace_line("../compost_rpc/compost_rpc.py", r'^__version__\s*=.*$', f'__version__ = "{new_version}"')

run(["git", "-C", "..", "add", "compost_rpc/compost_rpc.py", "pyproject.toml"])
run(["git", "-C", "..", "commit", "-m", f"chore: Release version {new_version}"])

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the "chore: " prefix

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be removed.

@moucha19-st

Copy link
Copy Markdown
Collaborator Author

Why do we depend on the dotnet GitVersion tool and uv?

Right now we depend on both anyways, uv was just more practical for this specific task (making a stable release). GitVersion would be mostly helpful for CI and versioning the snapshot builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants